<template>
  <div>
    <el-button @click="handleClick">点我弹出弹框</el-button>
  </div>
</template>

<script>
import {useDialog} from "@/components/dialog7/MyDialog";
import createForm from "@/components/dialog7/CreateForm";

export default {
  name: "MyDialogTest7",
  data() {
    return {
      fdata: {
        hobbyArray: [
          {label: "唱歌", value: "sing"},
          {label: "跳舞", value: "dance"},
          {label: "篮球", value: "basketball"},
        ]
      },


    }
  },
  methods: {
    handleClick() {
      useDialog(createForm, {
        fdata: this.fdata,
        submitUrl: "/user/create/save",
      }, () => {}, () => {});
    }
  }
}
</script>

<style scoped>

</style>